package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Attention;
import cn.wolfcode.trip.base.domain.Great;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttentionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attention record);

    Attention selectByPrimaryKey(Long id);

    List<Attention> selectAll();

    int updateByPrimaryKey(Attention record);


    Attention selectByUserIdAndUserGetId(@Param("userId") Long userId, @Param("userGetId") Long userGetId);

    void deleteAttention(@Param("userId") Long userId, @Param("userGetId") Long userGetId);

    //查询关注数量
    int selectGreatNum(Long userId);
    //更细关注数量
    void updateGreatNum(@Param("userId") Long userId, @Param("i") int i);
    //查询所有关注用户的id
    List<Attention> getUg_Id(Long id);
}